package Socket.test.client_socket;

import java.io.*;
import java.net.InetAddress;
import java.net.Socket;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.UnknownHostException;
import java.util.Timer;
import java.util.TimerTask;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class client {
	public static void main(String[] args) throws Exception{

		Socket socket = new Socket("127.0.0.1", 22222);
		OutputStream outputStream = socket.getOutputStream();

		String str = "https:127.0.0.1:22222/booEstore/user?method=login&username=admin&password=admin123";
		byte[] bytes = str.getBytes();
		outputStream.write(bytes,0,bytes.length);


		socket.shutdownOutput();

		socket.close();
	}
}
